; * lisp/treesit.el (treesit-beginning-of-defun): Doc fix (bug#78703).
authorEli Zaretskii <eliz@gnu.org>
Fri, 6 Jun 2025 07:00:20 +0000 (10:00 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 6 Jun 2025 07:00:20 +0000 (10:00 +0300)
lisp/treesit.el

index 2b5989fcaeef8a110b47917b966b2bfb8d4ad6e1..512e82375f1746f0e17825d3f9b720e48f779bcc 100644 (file)
@@ -2479,7 +2479,10 @@ This is a tree-sitter equivalent of `beginning-of-defun'.
 Behavior of this function depends on `treesit-defun-type-regexp'
 and `treesit-defun-skipper'.  If `treesit-defun-type-regexp' is
 not set, Emacs also looks for definition of defun in
-`treesit-thing-settings'."
+`treesit-thing-settings'.
+
+Whether this goes to the innermost nested defun or a top-level
+one is determined by the value of `treesit-defun-tactic'."
   (interactive "^p")
   (or (not (eq this-command 'treesit-beginning-of-defun))
       (eq last-command 'treesit-beginning-of-defun)